﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Acaweb.Data.Contracts;
using Acaweb.Model.Entities;

namespace Acaweb.Componentes
{
    [Serializable]
    public class PlanesEstudiosService : BaseService, Acaweb.Componentes.Contracts.IPlanesEstudiosService
    {
        private IPlanesEstudiosDao _PlanesEstudiosDao;

        public IPlanesEstudiosDao PlanesEstudiosDao
        {
            get { return _PlanesEstudiosDao; }
            set { _PlanesEstudiosDao = value; }
        }

        public IList<Model.Entities.PlanesEstudios> GetAll()
        {
            return PlanesEstudiosDao.GetAll();
        }

        public Model.Entities.PlanesEstudios GetById(int Id)
        {
            return PlanesEstudiosDao.GetById(Id);
        }

        public IList<Model.Entities.PlanesEstudios> GetByFacultad(int CodigoFacultad)
        {
            return PlanesEstudiosDao.GetByFacultad(CodigoFacultad);

        }

        public IList<PlanesEstudios> GetByTipoPrograma(Model.Entities.DatosCompuestos.TipoPrograma TipoPrograma)
        {
            return PlanesEstudiosDao.GetByTipoPrograma(TipoPrograma);
        }
    }
}
